package com.yx.frame.service;

import org.json.JSONObject;

public final class ServiceError extends ServiceResult {
	public ServiceError() {
	}

	public ServiceError(String message) {
		setErrorMessage(message);
	}

	public String getErrorMessage() {
		return this.getServiceMessage();
	}

	public void setErrorMessage(String errorMessage) {
		this.setServiceSuccess(false);
		this.setServiceMessage(errorMessage);
	}

	public boolean isError() {
		return !isServiceSuccess();
	}
}
